package com.ny.service;
import com.ny.entity.Product;
import java.sql.SQLException;
import java.util.List;

public interface ProductService {
   List<Product> findAllProduct() throws SQLException;
   Product findProductById(int productId) throws SQLException;
   boolean updateProductStock(int productId, int number) throws SQLException;
    int updateStudentPassword(int studentId, String studentPassword) throws SQLException;
    int addProduct(Product product) throws SQLException;
    boolean deleteProduct(int deleteId) throws SQLException;
}
